package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterEarningsDao;
import com.vf.admin.miaodong.entity.AppEarnings;
import com.vf.admin.miaodong.entity.AppUser;
import com.vf.admin.miaodong.service.AfterEarningsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 收益明细
 */
@Service
public class AfterEarningsServiceImpl implements AfterEarningsService {

    @Autowired
    AfterEarningsDao afterEarningsDao;

    /**
     * 查询列表
     */
    @Override
    public List<AppEarnings> findList(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return afterEarningsDao.findList(paraMap, splitPage);
    }

    /**
     * 详情
     */
    @Override
    public AppEarnings get(Integer id) {
        return afterEarningsDao.get(id);
    }

    /**
     * 添加/修改
     */
    @Override
    public void saveOrUpdate(AppEarnings haoYou) {
        afterEarningsDao.saveOrUpdate(haoYou);
    }

    /**
     * 删除
     */
    @Override
    public void del(Integer id) {
        afterEarningsDao.del(id);
    }
}
